• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

caterpillar method

[ leetcode ] Longest Substring with At Most Two Distinct Characters

요즘 알고리즘은 통 안풀다가 오랜만에 리트코드를 켰다. 그리고 만난 문제 Longest Substring with At Most Two Distinct Characters 문제 설명은 다음과 같다. 오직 두 종류의 문자로 이루어진 가장 긴 연속된 부분 문자열의 길이를 구하시오. 문제를 보니 백준 문제가 생각 나서 caterpillar method라는 방법으로 풀었다. 위 링크는 해당 방법에 ...

two pointeralgorithmcaterpillar methodSliding WindowSliding Window

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more